terraform {
  backend "s3" {
    endpoint = "http://minio.deeproute.ai"
    bucket = "terraform"
    key = "prod/services/iscsi"
    region = "main"
    skip_credentials_validation = true
    skip_metadata_api_check = true
    skip_region_validation = true
    force_path_style = true
  }
}

module "jiradata0" {
  source = "git@code.deeproute.ai:deeproute/ops-terraform.git//ansible_provisioner?ref=module.v1.0.0"
  arguments = [
    "--user=devops",
    "-b",
    "-i hosts.yml"
  ]
  envs      = [
    "NAME=jiradata0",
    "APP_DISK_DEVICE=/dev/zvol/gpool/DATA/glusterfs/prod_jira",
    "APP_DISK_ID=103216111",
    "ansible_python_interpreter=/usr/bin/python3"
  ]
  playbook  = "../../../playbooks/projects/site-iscsi-tgt.yml"
  dry_run   = false
}

module "confluencedata0" {
  source = "git@code.deeproute.ai:deeproute/ops-terraform.git//ansible_provisioner?ref=module.v1.0.0"
  arguments = [
    "--user=devops",
    "-b",
    "-i hosts.yml"
  ]
  envs      = [
    "NAME=confluencedata0",
    "APP_DISK_DEVICE=/dev/zvol/gpool/prod_confluence",
    "APP_DISK_ID=103217111",
    "ansible_python_interpreter=/usr/bin/python3"
  ]
  playbook  = "../../../playbooks/projects/site-iscsi-tgt.yml"
  dry_run   = false
}

module "opsheketidata0" {
  source = "git@code.deeproute.ai:deeproute/ops-terraform.git//ansible_provisioner?ref=module.v1.0.0"
  arguments = [
    "--user=devops",
    "-b",
    "-i hosts.yml"
  ]
  envs      = [
    "NAME=opsheketidata0",
    "APP_DISK_DEVICE=/dev/zvol/gpool/DATA/glusterfs/prod_ops_heketi",
    "APP_DISK_ID=103218111",
    "ansible_python_interpreter=/usr/bin/python3"
  ]
  playbook  = "../../../playbooks/projects/site-iscsi-tgt.yml"
  dry_run   = false
}

